from django.conf.urls import url
from . import views

urlpatterns = [

    # this.host + "/image_codes/" + this.image_code_id + "/"; 请求图片验证码
    url('^image_codes/(?P<img_code_id>[^/]+)/$',views.ImageCodeView.as_view()),

    # this.host + '/sms_codes/' + this.mobile + '/?image_code=' + this.image_code + '&image_code_id=' + this.image_code_id;  请求短信验证码

    url('^sms_codes/(?P<phone>1[3-9]\d{9})/$',views.PhoneCodeView.as_view()),

]